<template>
	<view>
		<nav-custom :name="title"></nav-custom>
		<view class="list">
			<view class="back dis_f_sb_c mar_bott" @click="go_view('/pages-2/wd_sz/dp_sz')">
				<view class="black_s_28">店铺设置</view>
				<image class="right" :src="url+'/image/right.png'" mode=""></image>
			</view>
			<view class="back dis_f_sb_c mar_bott" @click="go_view('/pages-2/wd_sz/wd_yhk')">
				<view class="black_s_28">我的银行卡</view>
				<image class="right" :src="url+'/image/right.png'" mode=""></image>
			</view>
			<view class="back dis_f_sb_c mar_bott" @click="go_view('/pages-2/wd_sz/wd_mm')" v-if="info.login_passwords">
				<view class="black_s_28">登录密码</view>
				<view class="dis_f_r_c">
					<view class="grey_f_28">
						已设置
					</view>
					<image class="right" :src="url+'/image/right.png'" mode=""></image>
				</view>
			</view>
			
			<view class="back dis_f_sb_c mar_bott" @click="go_view('/pages-2/wd_sz/wd_mm2')" v-else>
				<view class="black_s_28">登录密码</view>
				<view class="dis_f_r_c">
					<view class="grey_f_28">
						未设置
					</view>
					<image class="right" :src="url+'/image/right.png'" mode=""></image>
				</view>
			</view>
			
			
			
			<view class="back dis_f_sb_c mar_bott" @click="go_view('/pages-2/wd_sz/zf_mm2')" v-if="info.zf_passwords">
				<view class="black_s_28">支付密码</view>
				<view class="dis_f_r_c">
					<view class="grey_s_28">
						已设置
					</view>
					<image class="right" :src="url+'/image/right.png'" mode=""></image>
				</view>
			</view>
			<view class="back dis_f_sb_c mar_bott" @click="go_view('/pages-2/wd_sz/zf_mm')" v-else>
				<view class="black_s_28">支付密码</view>
				<view class="dis_f_r_c">
					<view class="grey_s_28">
						未设置
					</view>
					<image class="right" :src="url+'/image/right.png'" mode=""></image>
				</view>
			</view>
			<view class="back dis_f_sb_c mar_bott" @click="go_view('/pages-2/wd_sz/dp_xx')">
				<view class="black_s_28">店铺信息</view>
				<image class="right" :src="url+'/image/right.png'" mode=""></image>
			</view>
		</view>
		<view class="bule_back_but white_f_32 bot_wz" @click="logout">
			退出登录
		</view>
		<!-- <image class="bo_js_img" src="../../static/image/zcxian.png" mode=""></image> -->
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: "设置",
				info:[],
				url:''
			}
		},
		onLoad() {
			this.url=this.$.ajax_url3
			this.get_info()
		},
		methods: {
			get_info(){
				this.$.ajax(1,'post','store/store/store_information',{},(res)=>{
					if(res.code == 200){
						this.info = res.data
					}else{
						this.$.ti_shi(res.msg)
					}
				});
			},
			logout(){
				this.$.remove_data('token')
				uni.navigateTo({
					url: '/pages/mine/login'
				})
			},
			go_view(url) {
				uni.navigateTo({
					url: url
				})
			}
		}
	}
</script>

<style lang="scss">
	.list {
		padding: 0 32rpx;
		margin-top: 200rpx;
	}

	.right {
		width: 32rpx;
		height: 32rpx;
	}

	.mar_bott {
		margin-bottom: 24rpx;
		// padding: 42rpx 24rpx;
		height: 80rpx;
	}
</style>